<!--
 - Copyright (C) 2002-2010 WUZEWEN. All rights reserved.
 - WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 -->

<%--
 - <p>查看系统会话中的所有对象。</p>
 - @author WUZEWEN on 2010-1-29
 - @version	1.0
 - @since	JDK5,Tomcat5.5.9
 - <p>Modify logs:
 -		2010-1-29 by WZW:... <br>
 - </p>
 --%>


<%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.Enumeration,java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<%
System.out.println("run me, i'm url_Rewrite_All.jsp, has replaced by submit_to_me.jsp.");
%>
</head>

<body>
<table width="90%" border="1">
  <tr>
    <td>&nbsp; <%="I'm "+request.getRequestURI()%></td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td>Name</td>
    <td>Value</td>
  </tr>

<%

	out.println("<tr><td colspan='6'><b>request参数------------------------List</b></td></tr>");
	String name, value ;
	Enumeration names = request.getParameterNames();
	while(names.hasMoreElements()){
		name = names.nextElement().toString();
		value = request.getParameter( name );
		out.println("<tr>");
		out.println("<td>"+name+"</td>");
		out.println("<td>"+value+"</td>");
		out.println("</tr>");
	}


	out.println("<tr><td colspan='6'><b>request域中的对象------------------------List</b></td></tr>");
	
	names = request.getAttributeNames();
	while(names.hasMoreElements()){
		name = names.nextElement().toString();
		value = request.getAttribute(name)==null?"":request.getAttribute(name).toString();
		out.println("<tr>");
		out.println("<td>"+name+"</td>");
		out.println("<td>"+value+"</td>");
		out.println("</tr>");
	}

	out.println("<tr><td colspan='6'><b>session域中的对象------------------------List</b></td></tr>");

	names = session.getAttributeNames();
	while(names.hasMoreElements()){
		name = names.nextElement().toString();
		value = session.getAttribute(name).toString();
		out.println("<tr>");
		out.println("<td>"+name+"</td>");
		out.println("<td>"+value+"</td>");
		out.println("</tr>");
	}

	out.println("<tr><td colspan='6'><b>application域中的对象------------------------List</b></td></tr>");

	names = application.getAttributeNames();
	while(names.hasMoreElements()){
		name = names.nextElement().toString();
		value = application.getAttribute(name).toString();
		out.println("<tr>");
		out.println("<td>"+name+"</td>");
		out.println("<td>"+value+"</td>");
		out.println("</tr>");
	} 
 %>

  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

</body>
</html>
